import { kaynComponent } from '../common/component'
import wxUtils from '../../../utils/wxUtils'
kaynComponent({
    props: {
        list: {
            type: Array,
            value: []
        }
    },
    methods: {
        // 跳转页面
        redirectToPage(e) {
            let link = e.currentTarget.dataset.link;
            if (!link) return;
            wxUtils.redirectToPage(link);
        }
    }
});